<footer class="text-center mt-5 p-3 bg-light">
  <small><?php echo assign_query_info(); ?></small>
</footer>

<!-- Optional JavaScript -->
<!-- Popper.js first, then Bootstrap JS -->
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous">
</script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/holder.min.js"></script>

<script>
// a
$("a").each(function(e) {
  // e.stopPropagation();
  var the = $(this);
  if (the.attr("href") == '' || the.attr("href") == '#') {
    the.attr("href", "javascript:void(0);");
  }
});

// card
$(".card-header").click(function(e) {
  if (!$(this).children("ul").length) {
    $(this).parent().find(".card-body").toggle();
  }
});

// table
$("table>thead").click(function() {
  $(this).parent().find("tbody").toggle();
});

// tabs
$(".card-header-tabs>li").click(function(e) {
  e.stopPropagation();
  var the = $(this);
  var a = $(this).children("a");
  var id = the.attr("data-id");
  // console.log(id);
  if (!a.hasClass("active")) {
    a.addClass("active").parent().siblings().children("a").removeClass("active");
    the.parent().parent().parent().parent().find('#' + id).addClass("active").siblings().removeClass(
      "active");
  }
});

// sitemap
$("#sitemap").click(function() {
  $.ajax({
    url: '<?php echo M('admin', 'sitemap', 'index'); ?>',
    dataType: 'json',
    success: function(res) {
      if (0 == res.err) {
        alert('站点根目录sitemap.xml文件已经生成!');
      }
    }
  });
});
</script>

<?php hook('plupload'); ?>